<?php
namespace Home\Controller;
use Think\Controller\RestController;
/*
*前台公用控制器
*/
class CommonController extends RestController {

	public function _initialize(){

		if(!isset($_SESSION[C('USER_AUTH_KEY')])) {
			$this->error('请先登录', U('Home/Index/index'));
		}
	}
}
?>